package com.limingru.newbee.dao;

import com.limingru.newbee.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    User selectByLoginNameAndPassword(@Param("loginName") String loginName, @Param("passwordMD5") String passwordMD5);

    int register(User user);

    User selectByLoginName(@Param("loginName") String loginName);

    User selectUserByUserId(@Param("userId") Long userId);

    int update(User user);
}
